﻿using System;
using System.Collections.Generic;
using Data.Entities;

namespace Service.Interface
{
    /// <summary>
    /// 学生接口类
    /// </summary>
    public interface IStudentService
    {
        #region 新增
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="student"></param>
        void Add(Student student);
        #endregion

        #region 删除
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">主键</param>
        void Delete(Guid id);
        #endregion

        #region 根据主键获取
        /// <summary>
        /// 根据主键获取
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns>Student</returns>
        Data.Entities.Student Get(Guid id);
        #endregion

        #region 根据泛型委托获取所有数据
        /// <summary>
        /// 根据泛型委托获取所有数据
        /// </summary>
        /// <param name="func">泛型委托</param>
        /// <returns>Student集合</returns>
        IList<Student> FindAll(Func<Student, bool> func);
        #endregion
    }
}